<template>
  <div>
    <footer class="footer">
      <div class="container">@v3u.cn &nbsp;&nbsp;&nbsp;当前在线人数：{{ online }}</div>
    </footer>
  </div>
</template>

<script>
export default {
  data: function() {
    return {
      online: ""
    };
  },
  mounted: function() {
    this.axios({
      url: "http://localhost:8000/getonline/"
    }).then(res => {
      this.online = res.data.online;
    });
  }
};
</script>
<style>
</style>